import {fetch} from "./fetch"; //引用fetch.js
import {api} from './url'; //引用url.js

function Ajax(url, method, data) {
  var data   = data || {};
  var url    = url || '';
  var method = method || 'get';
  return fetch({
    url    : api + url,
    method : method,
    data   : data
  })

}

export const getToken = (data) => Ajax('/api/v2/movie/in_theaters', 'post', data);  //获取Token;
